﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NewCompany.aspx.cs" Inherits="Main_Company_NewCompany"
    Culture="en-GB" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/User Controls/PageHeading.ascx" TagName="heading" TagPrefix="acc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>New Company</title>
    <link href="../../Styles/accounts.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true">
    </asp:ScriptManager>
    <div class="divmain">
        <acc:heading ID="pagehead" runat="server" HeadingText="Company Master -> Add New" />
    </div>
    <div align="center">
        <asp:Label ID="lblMsg" runat="server" Font-Bold="true"></asp:Label></div>
    <asp:UpdateProgress DynamicLayout="false" ID="UpdProgress" runat="server">
        <ProgressTemplate>
            <div align="center">
                <img src="../../Images/ajax-loader.gif" /></div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <ajaxtoolkit:tabcontainer id="TabContainer1" runat="server" width="65%" style="margin-left: 20%;
        margin-right: 20%; padding: 0px;">
       <ajaxToolkit:TabPanel id="tabemp" runat="server" HeaderText="Company Information" width="100%" height="100%">
         <ContentTemplate>
            <table class="tablecontent" >
            <tr>
                <td class="headtd" colspan="2"> 
                    Company Details
                </td>
            </tr>
            <tr>
                <td>
                 Company Name
                 <span class="required">*</span></td>
                <td>
                    <asp:TextBox ID="TextCompanyName" ToolTip="Enter Company Name" runat="server" CssClass ="input" />

                    <asp:RequiredFieldValidator ID="RFVCompanyname" ValidationGroup="CompanyInfo" runat="server" ControlToValidate="TextCompanyName" ErrorMessage ="Provide Company Name" />

                </td>
            </tr>
            <tr>
                <td>
                     Trading Name<span class="required">*</span>
                </td>
                <td> 
                    <asp:TextBox ID="TxtTradingName" runat="server" ToolTip="Enter Trading Name" CssClass ="input" />

                    <asp:RequiredFieldValidator ID="RFVTradingName" runat="server" ValidationGroup="CompanyInfo" ControlToValidate="TxtTradingName" ErrorMessage="Provide Trading Name" />

                </td>
            </tr>
            <tr>
                <td>Company Logo </td>
                <td> <asp:FileUpload ID="Fld" runat="server" size="7" /> </td>
            </tr>   
            <tr>
                <td class="headtd" colspan="2"> 
                    Type of business, status & company
                </td>               
            </tr>
            <tr>
                <td>
                    Type Of Business
                     <span class="required">*</span>
                </td>
                <td>
                   <asp:UpdatePanel ID="UPanelBuisness" runat="server" >
                       <ContentTemplate>
                     <asp:DropDownList ID="DDLTypeOfBuisness" runat="server" CssClass ="input" 
                    
                        onselectedindexchanged="DDLTypeOfBuisness_SelectedIndexChanged" 
                        AutoPostBack="True" />
                  
                      <asp:TextBox ID="TxtOthers" runat="server"  Visible="False" CssClass="input" />               
              
                    
                    </ContentTemplate>
</asp:UpdatePanel>

                </td>
            </tr>
            
            
            <tr>
                <td> 
                    Status<span class="required">*</span>
                </td>
                <td>
                    <asp:UpdatePanel ID="UPanelStatus" runat="server" >
                        <ContentTemplate>
                      <asp:DropDownList ID="DDLStatus" runat="server"  CssClass ="input" 
                        onselectedindexchanged="DDLStatus_SelectedIndexChanged" AutoPostBack="True" />
                      <asp:TextBox ID="TxtStatus" runat="server" Visible="False" CssClass="input" Width="88px"  />              
                    </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
            
          
            
            <tr>
                <td class="headtd"  colspan="2"> 
                    Maintain
                </td>
            </tr>
            <tr>
                <td> <asp:CheckBoxList ID ="chk" runat="server" ><asp:ListItem Text="Accounting" Value="1" Selected ="True"  ></asp:ListItem>
                        <asp:ListItem  Text="Invoicing"  Value="2"></asp:ListItem>
                        <asp:ListItem Text="Inventory"  Value="3"></asp:ListItem>
                    </asp:CheckBoxList>
                 </td>
            </tr>
            
           
            <tr>
                <td class="headtd" colspan="2"> 
                    Financial year
                </td>
            </tr>
            
           
            
            <tr>
                <td>Accounting Year Starting From<span class="required">*</span>
                </td>
               <td> 
                    <asp:TextBox  ID="TxtAccountingYearStarting" runat="server" ToolTip="Enter Starting Accounting Year"  onBlur="GetFinancialYearStarting()" CssClass ="input" Width="80px" />

                    <asp:ImageButton ID="ImgBtnAccountingYearStarting" runat="server" ImageUrl="~/Images/calendar.gif" />

                    <ajaxToolkit:CalendarExtender ID="CalExtAccountingYearStarting" runat="server" 
                       TargetControlID ="TxtAccountingYearStarting" 
                       PopupButtonID="ImgBtnAccountingYearStarting" Format="dd/MM/yyyy" 
                       Enabled="True" />





                      <ajaxToolkit:MaskedEditExtender ID="AccountStartMask"
                         runat="server" CultureName="en-GB" Enabled="True"
                         TargetControlID="TxtAccountingYearStarting"
                          MaskType="Date" DisplayMoney="Left" 
                           AcceptNegative="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" 
                       CultureAMPMPlaceholder="AM;PM" CultureCurrencySymbolPlaceholder="£" 
                       CultureDateFormat="DMY" CultureDatePlaceholder="/" 
                       CultureDecimalPlaceholder="." CultureThousandsPlaceholder="," 
                       CultureTimePlaceholder=":" ></ajaxToolkit:MaskedEditExtender>





                      <ajaxToolkit:MaskedEditValidator ID="AccountStartValmask" runat="server"
                        ControlExtender="AccountStartMask" ControlToValidate="TxtAccountingYearStarting"
                        EmptyValueMessage="Date is Required" InvalidValueMessage="Date is Invalid"
                         Display="Dynamic" EmptyValueBlurredText="*" 
                       ValidationGroup="CompanyInfo" ErrorMessage="AccountStartValmask" />





                    <asp:RequiredFieldValidator ID="RFVAccountingYear" runat="server"  ValidationGroup="CompanyInfo" ControlToValidate="TxtAccountingYearStarting" ErrorMessage="Provide Year" />


                        <script type="text/javascript" language="javascript">
                            function GetFinancialYearStarting()
                            {
                                var fyear_start=document.getElementById('<%=TxtAccountingYearStarting.ClientID%>').value;
                                 //alert(year);
                                 if(fyear_start!='')
                                 {
                                     var selectedDateTime = fyear_start; 
                                     var splitarray = new Array(); 
                                     splitarray= selectedDateTime.split("/"); 
                                     var sdate=splitarray[0];
                                     var smonth=splitarray[1];
                                     var syear=splitarray[2];
                                     if(sdate!='' && smonth!='' && syear!='')
                                     {
                                        var s_date=parseInt(sdate);
                                        var s_month=parseInt(smonth);
                                        var s_year=parseInt(syear);
                                        var end_year="";
                                        if(s_month>=4)
                                        {
                                          end_year=s_year+1;
                                        }
                                        else{
                                           end_year=s_year;
                                       }

                                       if (!isNaN(s_date) && !isNaN(s_month) && !isNaN(s_year)) {
                                           document.getElementById('<%=TxtAccountingLast.ClientID%>').value = "31/03/" + end_year;
                                       }
                                     }
                                 }
                             }
                           
                            
                            </script> </td>
            </tr>
            
            <tr>
                <td>
                     Last day of Accounting Period
                     <span class="required">*</span>
                </td>
                <td> <asp:TextBox  ID="TxtAccountingLast" ToolTip="Enter Ending Date of accounting Year" runat="server" CssClass ="input" Width="80px" />





                     <asp:ImageButton ID="ImgAccountingLast" runat="server" ImageUrl="~/Images/calendar.gif" />





                     <ajaxToolkit:CalendarExtender ID="CalExtAccountingLast" runat="server" 
                        TargetControlID="TxtAccountingLast" PopupButtonID="ImgAccountingLast" 
                        Format="dd/MM/yyyy" Enabled="True" />





                     <ajaxToolkit:MaskedEditExtender ID="MaskEditExtAccountLast"
                         runat="server" CultureName="en-GB" Enabled="True"
                         TargetControlID="TxtAccountingLast"
                          MaskType="Date" DisplayMoney="Left" 
                           AcceptNegative="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" 
                        CultureAMPMPlaceholder="AM;PM" CultureCurrencySymbolPlaceholder="£" 
                        CultureDateFormat="DMY" CultureDatePlaceholder="/" 
                        CultureDecimalPlaceholder="." CultureThousandsPlaceholder="," 
                        CultureTimePlaceholder=":"></ajaxToolkit:MaskedEditExtender>





                      <ajaxToolkit:MaskedEditValidator ID="MaskEditValAccountLast" runat="server"
                        ControlExtender="MaskEditExtAccountLast" ControlToValidate="TxtAccountingLast"
                        EmptyValueMessage="Date is Required" InvalidValueMessage="Date is Invalid"
                         Display="Dynamic" EmptyValueBlurredText="*" ValidationGroup="CompanyInfo" 
                        ErrorMessage="MaskEditValAccountLast" />





                    <asp:RequiredFieldValidator ID="RFVLastAccounting" runat="server"  ValidationGroup="CompanyInfo" ControlToValidate="TxtAccountingLast" ErrorMessage="Select Last Accounting Period" />





                </td>
            </tr>
            
            
            
            
            <tr> 
                <td> </td>
                <td>
                 <asp:Button ID="BtnSave" runat="server" CssClass="button" 
                        ValidationGroup="CompanyInfo" Text="Save" onclick="BtnSave_Click"/>





                   &nbsp;
                 <asp:Button ID="BtnCancel" runat="server" Text="Close" OnClick="BtnCancel_Click" CssClass="button" />

                 </td>               
            </tr>        
        </table>      
           
         
         </ContentTemplate>
   

</ajaxToolkit:TabPanel>    

 
   <ajaxToolkit:TabPanel id="TabContainer2" runat="server" HeaderText="Contact Details" width="100%" height="100%">
         
<ContentTemplate>
            <table class="tablecontent">
            <tr>
                <td class="headtd" colspan="2"> 
                    Address Details
                </td>
            </tr>
            <tr>
                <td>Address Line1</td>
                <td>
                    <asp:TextBox ID="TxtAdress1" ToolTip="Enter Address1" runat="server" CssClass ="input" />
                </td>
            </tr>
            
            <tr>
                <td>Address Line2</td>
                <td> <asp:TextBox ID ="TxtAddress2" ToolTip="Enter Address2" runat="server" CssClass="input" />
                </td>
            </tr>
            
             <tr>
                <td>Address Line3</td>
                <td> <asp:TextBox ID ="TxtAddress3" ToolTip="Enter Address3" runat="server" CssClass="input" />
                </td>
            </tr>
            
             <tr>
                <td>Address Line4</td>
                <td> <asp:TextBox ID ="TxtAddress4" ToolTip="Enter Address4" runat="server" CssClass="input" />
                </td>
            </tr>
            <tr>
                <td> 
                    Place
                </td>               
                <td>
                    <asp:TextBox ID="TxtPlace" ToolTip="Enter Place" runat="server" CssClass ="input" />
                </td>
            </tr>
            
            
            
            <tr>
                <td> Pincode</td>
                <td>
                   <asp:TextBox ID="TxtPincode" ToolTip="Enter Pincode" runat="server" CssClass ="input"></asp:TextBox>
                </td>
            </tr>
            
            <tr>
                <td>Country </td>
                <td><asp:DropDownList ID="DDLCountry" runat="server" CssClass="input" /></td>
            
            </tr>
            
            <tr>
                <td> <asp:Label ID="Lblstate" runat="server" Text="State" />
 </td>
                    <td>
                        <asp:DropDownList ID="DDLState" runat="server" CssClass ="input" >
                            
                        </asp:DropDownList>


                </td>
            </tr>
            
          
            
            <tr>
                <td class="headtd" colspan="2"> 
                    Phone & Fax Numbers
                </td>
            </tr>
            
            
            
                        
            <tr>
                <td>Phone</td>
                <td>
                    <asp:TextBox ID="TextBoxPhone" ToolTip="Enter Contact Number" runat="server" CssClass ="input" />
                </td>
            </tr>
            <tr>
                <td>Fax</td>
                <td>
                    <asp:TextBox ID="TextBoxFax" runat="server" ToolTip="Enter Fax" CssClass ="input" />
                </td>
            </tr>
            
           
            <tr>
                <td class="headtd" colspan="2">
                    E mail & Internet
                </td>
            </tr>
            
           
            
            <tr>
                <td>Email</td>
                <td>
                 <asp:TextBox ID="TextBoxEmail" runat="server" ToolTip="Enter Email" CssClass ="input" />
                </td>
            </tr>
            
            <tr>
                <td> Website</td>
                <td>
                    <asp:TextBox ID="TextBoxWebsite" runat="server" ToolTip="Enter Website" CssClass ="input" />
                </td>
            </tr>
            
            
            
            
            <tr> 
                <td class="headtd"  colspan="2"> 
                    Others
                </td>
                
            </tr>
            
            
            
                <tr>
                    <td>
                        Business Activity
                    </td>
                    <td>
                        <asp:TextBox ID="TextBoxBuisnessActivity" runat="server" ToolTip="Enter Buisness Activity" CssClass ="input" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="LblMiscellaneous" runat="server" Text="Miscellaneous" />
                    </td>
                    <td>
                        <asp:TextBox ID="TxtMiscellaneous1" runat="server" ToolTip="Enter Miscellaneous" CssClass ="input" />
                    </td>
                </tr>
                
             <tr>
                <td>Miscellaneous</td>
                <td> <asp:TextBox ID ="TxtMiscellaneous2" runat="server" CssClass="input" />
                </td>
            </tr>
            
           
                
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="Button1" runat="server" Text="Save" CssClass="button" 
                            onclick="Button1_Click" />
                        &nbsp;
                        <asp:Button ID="Button2" runat="server" Text="Close" OnClick="Button2_Click"  CssClass="button"/>
                    </td>
                </tr>
            
            
            
        </table>    
         
         
         
             
         
         
         
         
         </ContentTemplate>


</ajaxToolkit:TabPanel> 
    
     
     <ajaxToolkit:TabPanel id="TabContainer3" runat="server" HeaderText="Registration Details" width="100%" height="100%">
                                      
        <ContentTemplate>
           <asp:UpdatePanel ID="UpdPanelRegDetails" runat="server">
           <ContentTemplate>
            <table class="tablecontent">
            <tr>
                <td class="headtd" colspan="4"> 
                    Registraion Detail
                </td>
            </tr>
            <tr>
                <td>
                    Permanent A/c No.
                </td>
                <td>
                    <asp:TextBox ID="TxtPermanant" runat="server" ToolTip="Enter Permanant A/c No. Date" CssClass ="input" />
                </td>
                <td>Date</td>
                <td>
                    <asp:TextBox ID="TxtDatePermanant" runat="server" CssClass ="input" Width="80px" />
                    <asp:ImageButton ID="ImgBtnDatePermanant" runat="server" ImageUrl="~/Images/calendar.gif" />
                    <ajaxToolkit:CalendarExtender ID="CalExtDatePermanent" runat="server" 
                        TargetControlID="TxtDatePermanant" PopupButtonID="ImgBtnDatePermanant" 
                        Format="dd/MM/yyyy" Enabled="True">
                    </ajaxToolkit:CalendarExtender>
                    <ajaxToolkit:MaskedEditExtender ID="MaskEditExtParmanent"
                         runat="server" CultureName="en-GB" Enabled="True"
                         TargetControlID="TxtDatePermanant"
                          MaskType="Date" DisplayMoney="Left" 
                           AcceptNegative="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" 
                        CultureAMPMPlaceholder="AM;PM" CultureCurrencySymbolPlaceholder="£" 
                        CultureDateFormat="DMY" CultureDatePlaceholder="/" 
                        CultureDecimalPlaceholder="." CultureThousandsPlaceholder="," 
                        CultureTimePlaceholder=":">
                    </ajaxToolkit:MaskedEditExtender>
                    <ajaxToolkit:MaskedEditValidator ID="MaskEditValParmanant" runat="server"
                        ControlExtender="MaskEditExtParmanent" ControlToValidate="TxtDatePermanant"
                        EmptyValueMessage="Date is Required" InvalidValueMessage="Date is Invalid"
                         Display="Dynamic" EmptyValueBlurredText="*" 
                        ErrorMessage="MaskEditValParmanant"  >
                    &nbsp;&nbsp;
                    </ajaxToolkit:MaskedEditValidator>
                </td>
            </tr>
            
            <tr>
                <td> Tax Deduction A/C</td>
                <td>
                     <asp:TextBox ID="TxtTaxdeduction" runat="server" ToolTip="Enter Tax Deduction A/c No." CssClass ="input" />
                </td>
                <td>Date</td>
                <td>
                    <asp:TextBox ID="TxtdateTaxDeduction" runat="server" ToolTip="Enter Tax Deduction A/c No. Date"  CssClass ="input" Width="80px" />
                    <asp:ImageButton ID="ImgBtnTaxDeduction" runat="server" ImageUrl="~/Images/calendar.gif" />
                    <ajaxToolkit:CalendarExtender ID="CalExtTaxDeduction" runat="server" 
                        TargetControlID="TxtdateTaxDeduction" PopupButtonID="ImgBtnTaxDeduction" 
                        Format="dd/MM/yyyy" Enabled="True">
                    </ajaxToolkit:CalendarExtender>
                    <ajaxToolkit:MaskedEditExtender ID="MaskEditExtTax"
                         runat="server" CultureName="en-GB" Enabled="True"
                         TargetControlID="TxtdateTaxDeduction"
                          MaskType="Date" DisplayMoney="Left" 
                           AcceptNegative="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" 
                        CultureAMPMPlaceholder="AM;PM" CultureCurrencySymbolPlaceholder="£" 
                        CultureDateFormat="DMY" CultureDatePlaceholder="/" 
                        CultureDecimalPlaceholder="." CultureThousandsPlaceholder="," 
                        CultureTimePlaceholder=":">
                    </ajaxToolkit:MaskedEditExtender>
                    <ajaxToolkit:MaskedEditValidator ID="MaskEditValTax" runat="server"
                        ControlExtender="MaskEditExtTax" ControlToValidate="TxtdateTaxDeduction"
                        EmptyValueMessage="Date is Required" InvalidValueMessage="Date is Invalid"
                         Display="Dynamic" EmptyValueBlurredText="*" 
                        ErrorMessage="MaskEditValTax"  >
                    &nbsp;&nbsp;
                    </ajaxToolkit:MaskedEditValidator>
                </td>
            </tr>
            
            
            
            <tr>
                <td> 
                    
                    <asp:CheckBox ID="CHKVat" AutoPostBack="true"  runat="server" Text="VAT TIN" >
                    </asp:CheckBox>



</td>               
                <td>
                    <asp:TextBox ID="TxtBoxVat" runat="server" CssClass ="input" ToolTip="Vat No."  />
                </td>
                <td>
                    <asp:Label ID="LblVatDate" runat="server" Text="Date" />
                </td>
                <td>
                    <asp:TextBox ID="TxtVatDate" runat="server" CssClass ="input" Width="80px" ToolTip="Enter Vat No. Date"  />
                    <asp:ImageButton ID="ImgBtnVatDate" runat="server" ImageUrl="~/Images/calendar.gif" />
                    <ajaxToolkit:CalendarExtender ID="CalExtVatDate" runat="server" 
                        TargetControlID="TxtVatDate" PopupButtonID="ImgBtnVatDate" Format="dd/MM/yyyy" 
                        Enabled="True">
                    </ajaxToolkit:CalendarExtender>
                    <ajaxToolkit:MaskedEditExtender ID="MaskEditExtVat"
                         runat="server" CultureName="en-GB" Enabled="True"
                         TargetControlID="TxtVatDate"
                          MaskType="Date" DisplayMoney="Left" 
                           AcceptNegative="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" 
                        CultureAMPMPlaceholder="AM;PM" CultureCurrencySymbolPlaceholder="£" 
                        CultureDateFormat="DMY" CultureDatePlaceholder="/" 
                        CultureDecimalPlaceholder="." CultureThousandsPlaceholder="," 
                        CultureTimePlaceholder=":">
                    </ajaxToolkit:MaskedEditExtender>
                    <ajaxToolkit:MaskedEditValidator ID="MaskEditValVat" runat="server"
                        ControlExtender="MaskEditExtVat" ControlToValidate="TxtVatDate"
                        EmptyValueMessage="Date is Required" InvalidValueMessage="Date is Invalid"
                         Display="Dynamic" EmptyValueBlurredText="*" 
                        ErrorMessage="MaskEditValVat"  >
                    &nbsp;&nbsp;
                    </ajaxToolkit:MaskedEditValidator>
                </td>
            </tr>
            
            
            
            <tr>
                <td> 
                    <asp:CheckBox ID="CHKInterstate" runat="server" AutoPostBack="true" Text="Inter-State tax regn." />
</td>
          <td>
                   <asp:TextBox ID="TextBoxinnerState" runat="server" CssClass ="input" ToolTip="Enter Inter State tax regn. no." />

 

                </td>
                <td>
                    <asp:Label ID="LblInterstateDate" runat="server" Text="Date" />
                </td>
                <td>
                    <asp:TextBox ID="TextBoxInterStateDate" runat="server" ToolTip="Enter Inter State tax regn. no. Date" CssClass ="input" Width="80px"  />
                    <asp:ImageButton ID="ImgBtnInterState" runat="server" ImageUrl="~/Images/calendar.gif" />
                    <ajaxToolkit:CalendarExtender ID="CalExtInnerState" runat="server" 
                        TargetControlID="TextBoxInterStateDate" PopupButtonID="ImgBtnInterState" 
                        Format="dd/MM/yyyy" Enabled="True">
                    </ajaxToolkit:CalendarExtender>
                    <ajaxToolkit:MaskedEditExtender ID="MaskEditExtState"
                         runat="server" CultureName="en-GB" Enabled="True"
                         TargetControlID="TextBoxInterStateDate"
                          MaskType="Date" DisplayMoney="Left" 
                           AcceptNegative="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" 
                        CultureAMPMPlaceholder="AM;PM" CultureCurrencySymbolPlaceholder="£" 
                        CultureDateFormat="DMY" CultureDatePlaceholder="/" 
                        CultureDecimalPlaceholder="." CultureThousandsPlaceholder="," 
                        CultureTimePlaceholder=":">
                    </ajaxToolkit:MaskedEditExtender>
                    <ajaxToolkit:MaskedEditValidator ID ="MaskEditValState" runat="server"
                        ControlExtender="MaskEditExtState" ControlToValidate="TextBoxInterStateDate"
                        EmptyValueMessage="Date is Required" InvalidValueMessage="Date is Invalid"
                         Display="Dynamic" EmptyValueBlurredText="*" 
                        ErrorMessage="MaskEditValState"  >
                    &nbsp;&nbsp;
                    </ajaxToolkit:MaskedEditValidator>                                     
                    
                </td>
            </tr>
            
            <tr>
                <td> 
                    <asp:CheckBox ID="CHKServiceTax" runat="server" AutoPostBack="true" Text="Service Tax Regn. No." />
 </td>
                    <td>
                        <asp:TextBox ID="TextBoxServiceTax" runat="server" CssClass ="input" ToolTip="Enter Service tax regn. no." />


                </td>
                <td>
                    <asp:Label ID="LblServiceTaxDate" runat="server" Text="Date" />
                </td>
                <td>
                    <asp:TextBox ID="TxtDateServiceTax" runat="server" CssClass ="input" Width="80px" ToolTip="Enter Service tax regn. no. Date"  />
                    <asp:ImageButton ID="ImgBtnServiceTax" runat="server" ImageUrl="~/Images/calendar.gif" />
                    <ajaxToolkit:CalendarExtender ID="CalExtServiceTax" runat="server" 
                        TargetControlID="TxtDateServiceTax" PopupButtonID="ImgBtnServiceTax" 
                        Format="dd/MM/yyyy" Enabled="True">
                    </ajaxToolkit:CalendarExtender>
                    <ajaxToolkit:MaskedEditExtender ID="MaskEditExtService"
                         runat="server" CultureName="en-GB" Enabled="True"
                         TargetControlID="TxtDateServiceTax"
                          MaskType="Date" DisplayMoney="Left" 
                           AcceptNegative="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" 
                        CultureAMPMPlaceholder="AM;PM" CultureCurrencySymbolPlaceholder="£" 
                        CultureDateFormat="DMY" CultureDatePlaceholder="/" 
                        CultureDecimalPlaceholder="." CultureThousandsPlaceholder="," 
                        CultureTimePlaceholder=":">
                    </ajaxToolkit:MaskedEditExtender>
                    <ajaxToolkit:MaskedEditValidator ID="MaskEditValServiceTax" runat="server"
                        ControlExtender="MaskEditExtService" ControlToValidate="TxtDateServiceTax"
                        EmptyValueMessage="Date is Required" InvalidValueMessage="Date is Invalid"
                         Display="Dynamic" EmptyValueBlurredText="*" 
                        ErrorMessage="MaskEditValServiceTax"  >
                    &nbsp;&nbsp;
                    </ajaxToolkit:MaskedEditValidator>
                  
                </td>
            </tr>
            
          
            
            <tr>
                <td> 
                    <asp:CheckBox ID="CHKCentralExcise" runat="server" AutoPostBack="true" Text="Central Excise PA No." />



</td>
                <td>
                    <asp:TextBox ID="TextBoxCentralExcise" runat="server" CssClass ="input" ToolTip="Enter Central Excise PA no." />
                </td>
                <td>
                    <asp:Label ID="LBLCentralExcise" runat="server" Text="Date" />
                </td>
                <td>
                    <asp:TextBox ID="TxtDateCentralExcise" runat="server" CssClass ="input" ToolTip="Enter Central Excise PA no. Date" Width="80px"  />
                    <asp:ImageButton ID="ImgBtnCentralExcise" runat="server" ImageUrl="~/Images/calendar.gif" />
                    <ajaxToolkit:CalendarExtender ID="CalExtCentralExcise" runat="server" 
                        TargetControlID="TxtDateCentralExcise" PopupButtonID="ImgBtnCentralExcise" 
                        Format="dd/MM/yyyy" Enabled="True">
                    </ajaxToolkit:CalendarExtender>
                    <ajaxToolkit:MaskedEditExtender ID="MaskEditExtCentralExcise"
                         runat="server" CultureName="en-GB" Enabled="True"
                         TargetControlID="TxtDateCentralExcise"
                          MaskType="Date" DisplayMoney="Left" 
                           AcceptNegative="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" 
                        CultureAMPMPlaceholder="AM;PM" CultureCurrencySymbolPlaceholder="£" 
                        CultureDateFormat="DMY" CultureDatePlaceholder="/" 
                        CultureDecimalPlaceholder="." CultureThousandsPlaceholder="," 
                        CultureTimePlaceholder=":">
                    </ajaxToolkit:MaskedEditExtender>
                    <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator1" runat="server"
                        ControlExtender="MaskEditExtCentralExcise" ControlToValidate="TxtDateCentralExcise"
                        EmptyValueMessage="Date is Required" InvalidValueMessage="Date is Invalid"
                         Display="Dynamic" EmptyValueBlurredText="*" 
                        ErrorMessage="MaskedEditValidator1"  >
                    &nbsp;&nbsp;
                    </ajaxToolkit:MaskedEditValidator>
                </td>
            </tr>
            
            
            
                        
            <tr>
                <td> 
                    <asp:CheckBox ID="CHKLuxuryTax" runat="server" AutoPostBack="true" Text="Luxury Tax regn. No." />

                </td>
                <td>
                    <asp:TextBox ID="TextBoxLuxuryTax" runat="server" CssClass ="input" ToolTip="Enter Luxury Tax regn No." />
                </td>
                <td>
                    <asp:Label ID="LblDateLuxuryTax" runat="server" Text="Date" />
                </td>
                <td>
                    <asp:TextBox ID="DateLuxuryTax" runat="server" CssClass ="input" Width="80px" ToolTip="Enter Luxury Tax regn No. Date" />
                    <asp:ImageButton ID="ImgBtnLuxuryTax" runat="server" ImageUrl="~/Images/calendar.gif" />
                    <ajaxToolkit:CalendarExtender ID="CalExtLuxuryTax" runat="server" 
                        TargetControlID="DateLuxuryTax" PopupButtonID="ImgBtnLuxuryTax" 
                        Format="dd/MM/yyyy" Enabled="True">
                    </ajaxToolkit:CalendarExtender>
                    <ajaxToolkit:MaskedEditExtender ID="MaskEditExtLuxury"
                         runat="server" CultureName="en-GB" Enabled="True"
                         TargetControlID="DateLuxuryTax"
                          MaskType="Date" DisplayMoney="Left" 
                           AcceptNegative="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" 
                        CultureAMPMPlaceholder="AM;PM" CultureCurrencySymbolPlaceholder="£" 
                        CultureDateFormat="DMY" CultureDatePlaceholder="/" 
                        CultureDecimalPlaceholder="." CultureThousandsPlaceholder="," 
                        CultureTimePlaceholder=":">
                    </ajaxToolkit:MaskedEditExtender>
                    <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator2" runat="server"
                        ControlExtender="MaskEditExtLuxury" ControlToValidate="DateLuxuryTax"
                        EmptyValueMessage="Date is Required" InvalidValueMessage="Date is Invalid"
                         Display="Dynamic" EmptyValueBlurredText="*" 
                        ErrorMessage="MaskedEditValidator2"  >
                    &nbsp;&nbsp;
                    </ajaxToolkit:MaskedEditValidator>
                </td>
            </tr>
            
           
            <tr>
                <td> 



 </td>
                <td>
                    <asp:Button ID="Button3" runat="server" Text="Save" CssClass="button" 
                        onclick="Button3_Click"/>
                    &nbsp; &nbsp;
                    <asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="Close" CssClass="button" />
                </td>
            </tr>
            
           
            
            </table>
        
        
        
            </ContentTemplate>
       </asp:UpdatePanel> 
         
         
         </ContentTemplate>
</ajaxToolkit:TabPanel>
   </ajaxtoolkit:tabcontainer>
    </form>
</body>
</html>
